import Vue from 'vue'
import Router from 'vue-router'
import Login from 'components/login/login'
import Home from 'components/home/home'
import Index from 'components/index/index'
import pageContent from 'components/pageContent/pageContent'
import gameManage from 'components/gameManage/gameManage'
import gameGift from 'components/gameGift/gameGift'
import source from 'components/source/source'
import system from 'components/system/system'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children:[
       {
        path:'/Index',
        name: 'Index',
        component: Index
       },
       {
        path:'/pageContent',
        name: 'pageContent',
        component: pageContent
       },
       {
        path:'/gameManage',
        name: 'gameManage',
        component: gameManage
       },
       {
        path:'/gameGift',
        name: 'gameGift',
        component: gameGift
       },
       {
        path:'/source',
        name: 'source',
        component: source
       },
       {
        path:'/system',
        name: 'system',
        component: system
       }
      ]
    },
  ]
})
